from common import *
import os

#init function
#create the needed folder and file
def initGlobal():
    print("Start initializing")
    if os.path.exists(PAGE_STORE_DIRECTORY) == False:
        if os.mkdir(PAGE_STORE_DIRECTORY):
            print("Create folder : "+PAGE_STORE_DIRECTORY +"!")
        else:
            return False
    if os.path.exists(LOG_DIRECTORY) == False:
        if os.mkdir(LOG_DIRECTORY):
            print("Create folder : "+LOG_DIRECTORY +"!")
        else: 
            return False
    print("Initialzation finish!")
    return True
